package it.pecuswap.client.rest.service;

import it.pecuswap.client.rest.ClientProvider;
import it.pecuswap.commons.client.rest.interfaces.UserServiceInterface;
import it.pecuswap.commons.dto.UsersDTO;
import it.pecuswap.commons.exceptions.PecuswapRestException;
import it.pecuswap.exceptions.ConfigurationException;

public class UserServiceClient extends ClientProvider implements UserServiceInterface  {
	
	private UserServiceInterface userServiceInterface = null;

	public UserServiceClient() throws ConfigurationException{
		userServiceInterface = super.serviceClientInterfaceProvider(UserServiceInterface.class);
	}

	@Override
	public UsersDTO findUserByUserName(String userName) throws PecuswapRestException {
		return userServiceInterface.findUserByUserName(userName);
	}

	@Override
	public UsersDTO complexExample(UsersDTO dummy) throws PecuswapRestException {
		return userServiceInterface.complexExample(dummy);
	}
	
}
